package com.zjp.mapper;

import com.zjp.pojo.Healthreport;
import com.zjp.pojo.HealthreportExample;
import java.util.List;

import com.zjp.vo.HealthDeclarationRecordVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface HealthreportMapper {
    long countByExample(HealthreportExample example);

    int deleteByExample(HealthreportExample example);

    int deleteByPrimaryKey(Integer id);

    int  insert(Healthreport record);

    int insertSelective(Healthreport record);

    List<Healthreport> selectByExample(HealthreportExample example);

    Healthreport selectByPrimaryKey(long id);

    int updateByExampleSelective(@Param("record") Healthreport record, @Param("example") HealthreportExample example);

    int updateByExample(@Param("record") Healthreport record, @Param("example") HealthreportExample example);

    int updateByPrimaryKeySelective(Healthreport record);

    int updateByPrimaryKey(Healthreport record);

    @Select("select * from zjp.healthreport where UserId=#{id}")
    List<HealthDeclarationRecordVo> findAll(long id, HealthDeclarationRecordVo healthDeclarationRecordVo);
}